package net.showcal.api.request.mobile;


import net.showcal.api.ApiRuleException;
import net.showcal.api.XiniuRequest;
import net.showcal.api.internal.util.XiniuHashMap;
import net.showcal.api.response.mobile.SyncSqlIncrementResponse;
import net.showcal.api.response.mobile.ThermalHeatDetailResponse;

import java.util.Map;

/**
 * Created by Administrator on 2015/11/11.
 */
public class ThermalHeatDetailRequest implements XiniuRequest<ThermalHeatDetailResponse> {
    private XiniuHashMap udfParams = new XiniuHashMap();
    /**
     * 用户id
     */

    private  Long   userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String getApiMethodName() {
        return "platform.thermalHeatDetail.find";
    }

    @Override
    public Map<String, String> getTextParams() {
        XiniuHashMap txtParams = new XiniuHashMap();
        txtParams.put("userId",this.userId);

        if (this.udfParams != null) {
            txtParams.putAll(this.udfParams);
        }
        return txtParams;
    }

    @Override
    public Long getTimestamp() {
        return null;
    }

    @Override
    public void setTimestamp(Long timestamp) {

    }

    @Override
    public Class<ThermalHeatDetailResponse> getResponseClass() {
        return ThermalHeatDetailResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {

    }

    @Override
    public Map<String, String> getHeaderMap() {
        return null;
    }

    @Override
    public void putOtherTextParam(String key, String value) {
        this.udfParams.put(key, value);
    }
}
